#include <stdio.h>
int main(int argc, char const *argv[])
{
    int sec = 0, min = 0, hour = 0, count = 0, sec_count=0;
    while (1)
    {
        printf("HH:MM:SS->%02d:%02d:%02d\n", hour, min, sec);
        sec++;
        sec_count++;
        if (sec < 60) //判断成立执行continue;否者执行min++,sec=0
            continue;//sec<60,跳出本次循环，执行下一循环sec++,sec_count++
        min++;
        sec = 0;
        if (min < 60)
            continue;
        hour++;
        min = 0;
        if (hour < 24)
            continue;
        hour = 0;
        break;
    }
    printf("一天有多少%d秒", sec_count);

    return 0;
}
